
<%@ page import="pc.system.*,wstrader.*,wstrader.task.*" %>

<%
    Users user = Trader.getUser(request.getParameter("uid"));
	if (!user.Authenticated()) {
		response.sendRedirect("logon.jsp");
		return;
	}

	user.getRequest().setRequest(request);
	user.getResponse().setResponse(response,out);
	
	WareHouse task = user.warehouse;
	((Tasks)task.getOwner()).clearFocus();
	task.setFocus(true);
	//task.forwardToChild(user.getuid());	
	//response.sendRedirect("../wsmill/Mill?username='admin'?password='admin'");
%>
<%@include file="under-construction.jsp"%>

<script language="javascript">
function doLogon()
{
	var form = document.formMain;
	if ((form.username.value == '') || (form.password.value == ''))
	{
		alert("Username and Password can not be empty");
		form.username.focus();
		return;
	}
	form.taskID.value = "<%=WServlet.taskLogon%>";
	form.submit();
}
</script>
<form method="post" name="formMain" id="formMain" action="../wsmill/Mill">
  <!--input type="hidden" name="uid"       id="uid"       value="<%=user.getuid()%>">
  <input type="hidden" name="taskID"    id = "taskID"   value="<%=WServlet.taskLogon%>">
  <input type="hidden" name="linkPage"  id = "linkPage" value="home.jsp">
  <input type="hidden" name="language"  id = "language" value="<%=user.getLanguage()%>">
  <input name="username" type="hidden" id="username" value="admin">
  <input name="password" type="hidden" id="password" value="admin">
  <script>doLogon();</script-->
</form>
